package com.milo;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * <p>
 *
 * </p>
 * war包部署
 * @author Milo Lee
 * @date 2021-12-08 11:00
 *
 */
public class ServletInitializer extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		//来注册Spring配置类
		return application.sources(WebApplication.class);
	}

}
